<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css"/>
	<style type="text/css">
		.body{
			padding-top:50px;
		
		}
	
	</style>
</head>
<body class="body">
	
	<div class="container">
		<div class="row">
			<div class="span9">
			<form class="form-horizontal" action="task.jspx?m=create" method="post">
			
        <fieldset>
          <legend>添加新任务</legend>
          <div class="control-group">
            <label class="control-label" for="input01">任务名称</label>
            <div class="controls">'
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="name" style="height:30px" >
              <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">开始时间</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="begintime" style="height:30px">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">截止时间</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="endtime" style="height:30px">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01" >任务描述</label>
            <div class="controls">
              <textarea class="span5" rows="8" name="desc"></textarea>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">状态</label>
            <div class="controls">
            	
             <select id="multiSelect" name="state" >
                <option>新任务</option>
                <option>进行中</option>
                <option>已完成</option>
              </select>
             
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect" >级别</label>
            <div class="controls">
              <select id="multiSelect" name="level">
                <option>重要紧急</option>
                <option>重要不紧急</option>
                <option>紧急不重要</option>
                <option>不紧急不重要</option>
              </select>
            </div>
          </div>
         
          
          <div class="control-group">
            <label class="control-label" for="multiSelect">负责人</label>
            <div class="controls">
            
            	
            
              <select name="manager" class="multiSelect" >
		              <c:forEach items="${UserList}" var="user">
		              	<option value="${user.id}">${user.name}</option>
		               </c:forEach>
              </select>
            </div>
          </div>
          
          <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
            <button class="btn" onclick="location.back()">返回</button>
          </div>
        </fieldset>
      </form>          
          	
		</div>
		
	  </div>
	</div>
</body>
</html>